#ifndef __TPAD_H
#define __TPAD_H

#include "stm32f10x_rcc.h"
#include "stm32f10x_gpio.h"
#include "stm32f10x_tim.h"

typedef enum {
	TPAD_TRIGGLE_PRESS_SCAN = 0,
	TPAD_LONG_PRESS_SCAN    = 1,
}TPAD_SCAN_MODE;

u8 TPAD_init(u8 prescaler_divider);
u8 TPAD_scan(TPAD_SCAN_MODE mode);

#endif
